﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	TabPage.cs
//  Developer:	Solomatov Igor
//  Created:	14.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Smart.Common.WebControls
{
	/// <summary>
	/// TabPage
	/// </summary>
	[ToolboxData("<{0}:TabPage runat=\"server\"></{0}:TabPage>")]
	public class TabPage : Panel
	{
		[Bindable(true)]
		[Category("Appearance")]
		[DefaultValue("")]
		[Localizable(true)]
		public string Title
		{
			get { return (string) ViewState["t"] ?? string.Empty; }
			set { ViewState["t"] = value; }
		}

		[Bindable(true)]
		[Category("Behavior")]
		[DefaultValue("")]
		[Localizable(true)]
		public bool Postback
		{
			get { return ViewState["p"].SToBool(false); }
			set { ViewState["p"] = value; }
		}
	}
}